func runtime.getg

324 uses

	runtime (current package)
		arena.go#L477: 	if mp.gsignal == getg() {
		arena.go#L755: 	if mp.gsignal == getg() {
		arena.go#L817: 		if inittrace.active && inittrace.id == getg().goid {
		atomic_pointer.go#L34: 	buf := getg().m.p.ptr().wbBuf.get2()
		cgo.go#L94: 	g := getg()
		cgo_sigaction.go#L47: 			g = getg()
		cgocall.go#L147: 	mp := getg().m
		cgocall.go#L200: 	getg().m.winsyscall = winsyscall
		cgocall.go#L302: 	gp := getg()
		cgocall.go#L383: 	gp := getg()
		cgocheck.go#L41: 	gp := getg()
		chan.go#L116: 	if b := getg().bubble; b != nil {
		chan.go#L193: 	if c.bubble != nil && getg().bubble != c.bubble {
		chan.go#L258: 	gp := getg()
		chan.go#L319: 	if c.bubble != nil && getg().bubble != c.bubble {
		chan.go#L418: 	if c.bubble != nil && getg().bubble != c.bubble {
		chan.go#L540: 	if c.bubble != nil && getg().bubble != c.bubble {
		chan.go#L637: 	gp := getg()
		chan.go#L703: 	if c.bubble != nil && getg().bubble != c.bubble {
		checkptr.go#L91: 	if gp := getg(); gp.stack.lo <= uintptr(p) && uintptr(p) < gp.stack.hi {
		coro.go#L46: 	gp := getg()
		coro.go#L70: 	gp := getg()
		coro.go#L81: 	gp := getg()
		coro.go#L92: 	gp := getg()
		debug.go#L211: 	gp := getg()
		debug.go#L230: 	gp := getg()
		debugcall.go#L35: 	if getg() != getg().m.curg {
		debugcall.go#L38: 	if sp := sys.GetCallerSP(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
		debugcall.go#L111: 	gp := getg()
		debugcall.go#L212: 	gp := getg()
		debugcall.go#L221: 	getg().schedlink.set(callingG)
		debuglog.go#L132: 	gp := getg()
		heapdump.go#L698: 	gp := getg()
		iface.go#L137: 	if getg().m.mallocing != 0 {
		lock_futex.go#L36: 	gp := getg()
		lock_futex.go#L61: 	gp := getg()
		lock_futex.go#L107: 	gp := getg()
		lock_futex.go#L118: 	gp := getg()
		lock_futex.go#L140: 	mp := getg().m
		lock_spinbit.go#L156: 	gp := getg()
		lock_spinbit.go#L268: 	gp := getg()
		lock_spinbit.go#L410: 				getg().m.mLockProfile.recordUnlock(cycles * int64(n))
		lockrank_off.go#L42: 	releasem(getg().m)
		malloc.go#L1098: 		if assistG := getg().m.curg; assistG != nil {
		malloc.go#L1117: 		if mp.gsignal == getg() {
		malloc.go#L1273: 		if mp.gsignal == getg() {
		malloc.go#L1359: 		if mp.gsignal == getg() {
		malloc.go#L1450: 		if mp.gsignal == getg() {
		malloc.go#L1543: 		if mp.gsignal == getg() {
		malloc.go#L1661: 	if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1669: 	if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1700: 	assistG := getg()
		malloc.go#L1730: 		if getg().preempt {
		mbitmap.go#L421: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L481: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1291: 	getg().m.traceback = 2
		mbitmap.go#L1379: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1432: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1904: 	if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
		mcheckmark.go#L92: 		getg().m.traceback = 2
		mcheckmark.go#L137: 	gcw := &getg().m.p.ptr().gcw
		mcheckmark.go#L140: 	wbBufFlush1(getg().m.p.ptr())
		mcleanup.go#L438: 		q.sleeping.push(getg())
		mcleanup.go#L597: 	getg().runningCleanups.Store(true)
		mcleanup.go#L606: 	getg().runningCleanups.Store(false)
		mcleanup.go#L735: 	gp := getg()
		mcleanup.go#L736: 	ctx := getg().racectx
		mcleanup.go#L738: 	getg().racectx = racectxstart(gp.gopc, ctx)
		mcleanup.go#L753: 	gp := getg()
		mcleanup.go#L755: 	racectxend(getg().racectx)
		mcleanup.go#L757: 	getg().racectx = ctx
		mfinal.go#L200: 	gp := getg()
		mgc.go#L316: 	p := getg().m.p.ptr()
		mgc.go#L572: 		work.sweepWaiters.list.push(getg())
		mgc.go#L649: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgc.go#L656: 	if gp := getg(); gp.bubble != nil {
		mgc.go#L952: 	getg().m.preemptoff = "gcing"
		mgc.go#L986: 		getg().m.preemptoff = ""
		mgc.go#L1429: 	gp := getg()
		mgc.go#L1914: 	gp := getg()
		mgc.go#L1983: 	gp := getg()
		mgcmark.go#L227: 			userG := getg().m.curg
		mgcmark.go#L444: 	if getg() == gp.m.g0 {
		mgcmark.go#L447: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcmark.go#L451: 	if gp := getg(); gp.bubble != nil {
		mgcmark.go#L689: 	gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L757: 	gp := getg()
		mgcmark.go#L875: 	if gp == getg() {
		mgcmark.go#L892: 	p := getg().m.p.ptr()
		mgcmark.go#L1176: 	gp := getg().m.curg
		mgcmark.go#L1330: 	gp := getg().m.curg
		mgcmark.go#L1645: 	gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L1680: 			getg().m.traceback = 2
		mgcmark.go#L1792: 	gcw := &getg().m.p.ptr().gcw
		mgcpacer.go#L732: 	gp := getg()
		mgcscavenge.go#L361: 	s.g = getg()
		mgcscavenge.go#L421: 	if getg() != s.g {
		mgcscavenge.go#L467: 	if getg() != s.g {
		mgcscavenge.go#L578: 	if getg() != s.g {
		mgcsweep.go#L273: 	sweep.g = getg()
		mgcsweep.go#L359: 	gp := getg()
		mgcsweep.go#L468: 	gp := getg()
		mgcsweep.go#L507: 	gp := getg()
		mgcsweep.go#L691: 		getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
		mgcwork.go#L534: 		gp := getg().m.curg
		mheap.go#L1138: 	pp := getg().m.p.ptr()
		mheap.go#L1163: 	pp := getg().m.p.ptr()
		mheap.go#L1195: 	pp := getg().m.p.ptr()
		mheap.go#L1226: 	gp := getg()
		mheap.go#L1765: 	gp := getg()
		mheap.go#L2530: 		work.strongFromWeak.q.pushBack(getg())
		mprof.go#L543: 	gp := getg()
		mprof.go#L737: 	gp := getg()
		mprof.go#L756: 	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.haveStack {
		mprof.go#L1316: 	ourg := getg()
		mprof.go#L1417: 	if getg().m.p.ptr() == nil {
		mprof.go#L1512: 	gp := getg()
		mprof.go#L1638: 		gp := getg()
		mprof.go#L1642: 			g0 := getg()
		mstats.go#L777: 	if pp := getg().m.p.ptr(); pp != nil {
		mstats.go#L806: 	if pp := getg().m.p.ptr(); pp != nil {
		mwbbuf.go#L170: 	if getg().m.dying > 0 {
		mwbbuf.go#L174: 		getg().m.p.ptr().wbBuf.discard()
		mwbbuf.go#L181: 		wbBufFlush1(getg().m.p.ptr())
		os_linux.go#L405: 	getg().m.procid = uint64(gettid())
		os_linux.go#L413: 	getg().m.procid = 0
		os_linux.go#L629: 	mp := getg().m
		os_linux.go#L782: 		releasem(getg().m)
		os_linux.go#L844: 	gp := getg()
		os_linux.go#L867: 	releasem(getg().m)
		os_linux.go#L881: 	gp := getg()
		panic.go#L63: 	gp := getg()
		panic.go#L77: 	gp := getg()
		panic.go#L273: 	gp := getg()
		panic.go#L378: 	gp := getg()
		panic.go#L464: 	gp := getg()
		panic.go#L742: 	gp := getg()
		panic.go#L810: 	gp := getg()
		panic.go#L855: 	gp := getg()
		panic.go#L929: 	gp := getg()
		panic.go#L1010: 	gp := getg()
		panic.go#L1265: 	gp := getg()
		panic.go#L1301: 	gp := getg()
		panic.go#L1355: 	gp := getg()
		panic.go#L1467: 	gp := getg()
		preempt.go#L106: 	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
		preempt.go#L303: 	gp := getg()
		print.go#L66: 	mp := getg().m
		print.go#L76: 	mp := getg().m
		print.go#L90: 	gp := getg()
		proc.go#L149: 	mp := getg().m
		proc.go#L198: 		inittrace.id = getg().goid
		proc.go#L351: 	exithook.Goid = func() uint64 { return getg().goid }
		proc.go#L365: 	forcegc.g = getg()
		proc.go#L406: 	gp := getg()
		proc.go#L543: 	gp := getg()
		proc.go#L594: 	g := getg()
		proc.go#L631: 	me := getg()
		proc.go#L656: 	gp := getg()
		proc.go#L857: 	gp := getg()
		proc.go#L956: 	thisg := getg()
		proc.go#L998: 	gp := getg()
		proc.go#L1523: 	gp := getg()
		proc.go#L1637: 	casGToWaitingForSuspendG(getg().m.curg, _Grunning, waitReasonStoppingTheWorld)
		proc.go#L1644: 	gp := getg()
		proc.go#L1747: 	casgstatus(getg().m.curg, _Gwaiting, _Grunning)
		proc.go#L1870: 	gp := getg()
		proc.go#L1912: 	gp := getg()
		proc.go#L1973: 	gp := getg()
		proc.go#L1989: 	mp := getg().m
		proc.go#L2116: 		gp := getg().m.curg
		proc.go#L2150: 	pp := getg().m.p.ptr()
		proc.go#L2248: 	p := getg().m.p.ptr()
		proc.go#L2292: 	gp := getg()
		proc.go#L2593: 	mp := getg().m
		proc.go#L2700: 	g := getg()
		proc.go#L2721: 	return uintptr(unsafe.Pointer(getg().m))
		proc.go#L2878: 	if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
		proc.go#L2904: 		releasem(getg().m)
		proc.go#L2908: 	releasem(getg().m)
		proc.go#L2998: 	gp := getg()
		proc.go#L3020: 	getg().m.spinning = true
		proc.go#L3256: 	gp := getg()
		proc.go#L3285: 	if mp == getg().m {
		proc.go#L3302: 	gp := getg()
		proc.go#L3337: 	mp := getg().m
		proc.go#L3378: 	mp := getg().m
		proc.go#L3796: 	p := getg().m.p.ptr()
		proc.go#L3817: 	pp := getg().m.p.ptr()
		proc.go#L4010: 	gp := getg()
		proc.go#L4075: 	pp := getg().m.p.ptr()
		proc.go#L4124: 	mp := getg().m
		proc.go#L4217: 	gp := getg()
		proc.go#L4230: 	mp := getg().m
		proc.go#L4433: 		if gp := getg(); gp.bubble != nil {
		proc.go#L4453: 	mp := getg().m
		proc.go#L4527: 	gp := getg()
		proc.go#L4576: 	gp := getg()
		proc.go#L4682: 	gp := getg()
		proc.go#L4725: 	gp := getg()
		proc.go#L4802: 	gp := getg()
		proc.go#L4927: 	gp := getg()
		proc.go#L5029: 	gp := getg().m.curg
		proc.go#L5058: 	gp := getg().m.curg
		proc.go#L5102: 	msigrestore(getg().m.sigmask)
		proc.go#L5159: 	gp := getg()
		proc.go#L5164: 		pp := getg().m.p.ptr()
		proc.go#L5457: 	gp := getg()
		proc.go#L5485: 	gp := getg()
		proc.go#L5496: 	getg().m.lockedInt++
		proc.go#L5509: 	gp := getg()
		proc.go#L5532: 	gp := getg()
		proc.go#L5542: 	gp := getg()
		proc.go#L5632: 	getg().m.mallocing++
		proc.go#L5707: 	getg().m.mallocing--
		proc.go#L5720: 	gp := getg()
		proc.go#L5808: 	getg().m.p.ptr().timers.take(&pp.timers)
		proc.go#L5840: 			mp := getg().m
		proc.go#L5930: 	gp := getg()
		proc.go#L6039: 	gp := getg()
		proc.go#L6069: 		trace.ProcStop(getg().m.p.ptr())
		proc.go#L6077: 	gp := getg()
		proc.go#L6497: 	if mp == nil || mp == getg().m {
		proc.go#L6712: 	updateMaxProcsG.g = getg()
		proc.go#L7453: 	gp := getg()
		proc.go#L7473: 	gp := getg()
		proc.go#L7514: 	if p := getg().m.p.ptr(); !runqempty(p) {
		proflabel.go#L42: 	getg().labels = labels
		proflabel.go#L55: 	return getg().labels
		rand.go#L165: 	mp := getg().m
		rand.go#L228: 	mp := getg().m
		rdebug.go#L18: 	gp := getg()
		runtime.go#L236: 	gp := getg()
		runtime1.go#L39: 	gp := getg()
		runtime1.go#L629: 	gp := getg()
		runtime1.go#L636: 	gp := getg()
		runtime1.go#L755: 	return getg().fipsIndicator
		runtime1.go#L760: 	getg().fipsIndicator = indicator
		rwmutex.go#L89: 				m := getg().m
		rwmutex.go#L124: 	m := getg().m
		select.go#L123: 	gp := getg()
		select.go#L180: 			if getg().bubble != cas.c.bubble {
		sema.go#L147: 	gp := getg()
		sema.go#L264: 		if s.ticket == 1 && getg().m.locks == 0 && getg() != getg().m.g0 {
		sema.go#L305: 	s.g = getg()
		sema.go#L592: 	s.g = getg()
		sema.go#L641: 		if s.g.bubble != nil && getg().bubble != s.g.bubble {
		sema.go#L698: 			if s.g.bubble != nil && getg().bubble != s.g.bubble {
		signal_unix.go#L330: 	getg().m.profilehz = hz
		signal_unix.go#L417: 	return getg()
		signal_unix.go#L643: 	gsignal := getg()
		signal_unix.go#L907: 	gp := getg()
		signal_unix.go#L1328: 	mp := getg().m
		signal_unix.go#L1349: 	nmask := getg().m.sigmask
		signal_unix.go#L1363: 	if getg().m.newSigstack {
		signal_unix.go#L1373: 		restoreGsignalStack(&getg().m.goSigStack)
		signal_unix.go#L1418: 	gp := getg()
		signal_unix.go#L1438: 	gp := getg().m.gsignal
		signal_unix.go#L1461: 	gp := getg()
		stack.go#L348: 	thisg := getg()
		stack.go#L464: 	gp := getg()
		stack.go#L679: 				getg().m.traceback = 2
		stack.go#L912: 	gcController.addScannableStack(getg().m.p.ptr(), int64(newsize)-int64(old.hi-old.lo))
		stack.go#L1016: 	thisg := getg()
		stack.go#L1243: 		if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
		stack.go#L1254: 	if gp == getg().m.curg && gp.m.libcallsp != 0 {
		string.go#L174: 	stk := getg().stack
		stubs.go#L31: func getg() *g
		synctest.go#L176: 	gp := getg()
		synctest.go#L201: 		pp := getg().m.p.ptr()
		synctest.go#L284: 	gp := getg()
		synctest.go#L329: 	return getg().bubble != nil
		synctest.go#L334: 	if bubble := getg().bubble; bubble != nil {
		synctest.go#L348: 	gp := getg()
		synctest.go#L439: 	return getOrSetBubbleSpecial(p, getg().bubble.id, true)
		synctest.go#L453: 	return getOrSetBubbleSpecial(p, getg().bubble.id, false) == bubbleAssocCurrentBubble
		time.go#L18: 	if bubble := getg().bubble; bubble != nil {
		time.go#L34: 	gp := getg()
		time.go#L43: 	return getg().bubble != nil
		time.go#L335: 	gp := getg()
		time.go#L404: 	if bubble := getg().bubble; bubble != nil {
		time.go#L417: 	if t.isFake && getg().bubble == nil {
		time.go#L432: 	if t.isFake && getg().bubble == nil {
		time.go#L633: 		bubble := getg().bubble
		time.go#L721: 		bubble := getg().bubble
		time.go#L770: 	gp := getg()
		time.go#L1027: 	force := ts == &getg().m.p.ptr().timers && int(zombies) > int(ts.len.Load())/4
		time.go#L1053: 		force = ts == &getg().m.p.ptr().timers && int(ts.zombies.Load()) > int(ts.len.Load())/4
		time.go#L1126: 		gp := getg()
		time.go#L1180: 		gp := getg()
		time.go#L1197: 		gp := getg()
		time.go#L1247: 		gp := getg()
		time.go#L1262: 		gp := getg()
		time.go#L1440: 	if t.isFake && getg().bubble != c.bubble {
		time.go#L1453: 		now = getg().bubble.now
		time.go#L1473: 	if t.isFake && c.bubble != getg().bubble {
		trace.go#L376: 			me := getg().m.curg
		trace.go#L813: 		if getg().racectx != 0 {
		trace.go#L816: 		getg().racectx = getg().m.curg.racectx
		trace.go#L819: 		defer func() { getg().racectx = 0 }()
		traceback.go#L134: 	if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
		traceback.go#L1095: 	gp := getg()
		traceback.go#L1114: 	mp := getg().m
		traceback.go#L1278: 	curgp := getg().m.curg
		traceback.go#L1302: 		if gp.m != getg().m && readgstatus(gp)&^_Gscan == _Grunning {
		traceback.go#L1669: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceback.go#L1689: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		tracebuf.go#L46: 		gp := getg()
		tracebuf.go#L114: 		gp := getg()
		traceruntime.go#L432: 	gp := getg().m.curg
		tracestack.go#L38: 		mp = getg().m
		tracestack.go#L53: 				if getg() == gp || mp.curg == gp {
		tracestack.go#L78: 		if getg() == gp {
		tracestack.go#L86: 		if getg() == gp {
		vgetrandom_linux.go#L108: 	mp := getg().m